<?php
//判断用户是否登陆，登陆则不允许注册并进行提示
include _path("class/form");
$form = new Form();
$t = array(
	'1' => '男',
	'2' => '女',
	'3' => '保密'	
);
/*$input1 = $form->createone('text', 'user');
$input2 = $form->createone('checkbox', 'check1', '', '', $t);
$input3 = $form->createone('radio', 'sel1', '', '', $t);
$input4 = $form->createone('submit', 'submit', '', '提交注册');
$line = $form->addtoline(array($input1,$input2), '请选择属于你：', '选择你想要的');
$line.= $form->addtoline(array($input3), '请单选：', '测试');
$line.= $form->addtoplat(array($input4), '（请确认您同意了协议）');
$group = $form->addtogroup(array($line));
$form->addline(array(array('checkbox', 'sexy[]', '', '', $t)), '用户类型：', '选择说明');
$final = $form->addtoform(array($group),'form1','注册一个账户', '','class="t1"');*/
include _path('conf/midp-grid');
$final = $form->addform(
	"class='".C10."'",
	$form->addline(
		'id="membertype"',
		$form->addgrid(G2, "用 户 名"),
		$form->addgrid(G4, $form->createone('text', 'username', 'user')),
		$form->addgrid(G4." form_intro", '说明信息')
	),
	$form->addline(
		'',
		$form->addgrid(G2, "密    码"),
		$form->addgrid(G8, $form->createone('text', 'username', 'paswd'))
	),
	$form->addline(
		'',
		$form->addgrid(G2, "确认密码"),
		$form->addgrid(G8, $form->createone('text', 'username[1][]', 'paswd'))
	),
	$form->addline(
		'id="form_1"',
		$form->addgrid(G2, "性别"),
		$form->addgrid(G8, $form->createone('radio', 'abc', '2', '', $t))
	)
);


/*$form->addform('会员注册流程之一', 'form1', '?process=register&action=submitform' ,'post', 'class="t1"');
$form->addline(array('text, username'), '用户名：', '填写用户名');
$form->addline(array('password, password'), '密码：', '至少6个字符（英文和数字）');
$form->addline(array('password, repassword'), '确认密码：', '保持与密码一致');
$form->addline(array('text, email'), '邮箱：', '请填写常用邮箱');
//$form->addgroup('高级信息','', array(array('checkbox, type[]'), '性别：', '选择说明'));
//$form->bindlist('type[]', array('a','b'));
$form->addtoken();
$form->addplat(array('submit, submit, ,&nbsp;同&nbsp;意&nbsp;'), '请确认同意了支付');
//$form->addgroup(array(array(array('checkbox', 'check1', '', '', $t)), '第二行', '选择说明'),'title');

$final = $form->buildform();*/
//$form->debug();
//print_r($form->_formarray);
$tpl->assign('input', $final);


//$tpl->assign('input1', $input1);
?>